<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="${request.getContextPath()}/RepairRecord/repairRecord" method="post">
        <div class="bjui-searchBar">
            <g:hiddenField name="SYS_QUERY_NAME" value="repairRecord" />
            <g:hiddenField name="EXPORT_CONTENT_NAME" value="Excel" />
            <label>维修订单号：</label>
            <input type="text" name="docId" value="${docId}"/>
            <label>存货编码：</label>
            <input type="text" name="partNmae" value="${partNmae}"/>
            <label>工序名称：</label>
            <input type="text" name="stepDesc" value="${stepDesc}"/>
            <label>状态：</label>
            <input type="text" name="state" value="${state}"/><br/>
            <label>作业员姓名：</label>
            <input type="text" name="workerName" value="${workerName}"/>
            <label >发起时间：</label>&nbsp;
            <input type="text" name="startTime" value="${startTime}" data-pattern="yyyy-MM-dd"  data-toggle="datepicker" placeholder="FROM">&nbsp;
            <input type="text" name="endTime" value="${endTime}" data-pattern="yyyy-MM-dd" data-toggle="datepicker" placeholder="TO">&nbsp;&nbsp;

            <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
            <button type="button" class="btn-blue" onclick="javascript:bjuiExportExl('#pagerForm','${request.getContextPath()}/OutsourcedProcessing/exportExcel')" data-icon="file-excel-o" title="导出Excel">导出</button>&nbsp;
        </div>
    </form>
</div>

<div class="bjui-pageContent">

    <table  data-toggle="tablefixed" data-width="100%" data-nowrap="true">

        <thead>
        <tr>
            <g:each in="${tableHeadList}" status="j" var="headInstance">
                <g:if test="${headInstance!='RN'}">
                    <th  width="125"><g:message code="${headInstance}" default="${headInstance}"/></th>
                </g:if>
            </g:each>
        </tr>
        </thead>
        <tbody>
        <g:each in="${repairRecord}" status="i" var="dataInstance">
            <tr>
                <g:each in="${tableHeadList}" status="j" var="headInstance">
                    <g:if test="${headInstance=='CURRENT_STEP_TIME'}">
                        <td name="LOTSTAYTIME${i}">${dataInstance["${headInstance}"] }</td>
                    </g:if>
                    <g:elseif test="${headInstance=='CURRENT_STEP_TIME'}">
                        <td name="LOTSTAYTIME${i}">${dataInstance["${headInstance}"] }</td>
                    </g:elseif>
                    <g:elseif test="${headInstance!='RN'}">
                        <td>${dataInstance["${headInstance}"] }</td>
                    </g:elseif>
                </g:each>
            </tr>
        </g:each>
        </tbody>
    </table>
</div>

<g:render template="../template/pagination" />